package base.net.socket
{
	public class SocketConfig
	{
		/**
		 * TCP连接建立连接时需等待的毫秒数
		 */
		public static const TCP_CONNECT_TIMEOUT:uint=60000;
		/**
		 * 包种类标识长度(1byte)
		 */
		public static const PACKET_STRUCTURE_TYPE_LENGTH:int=1;
		
		/**
		 * 连接ID长度(int)
		 */
		public static const CONNECTION_ID_LENGTH:int=4;
		
		/**
		 * 连接校验码长度(int)
		 */
		public static const CONNECTION_CHECK_CODE_LENGTH:int=4;
		
		/**
		 * 数据包序号长度(int)
		 */
		public static const PACKET_NUMBER_LENGTH:int=4;
		
		/**
		 * 包体长度(short)
		 */
		public static const PACKET_BODY_LENGTH:int=2;
		
		/**
		 * 数据包协议号长度(short)
		 */
		public static const PACKET_PROTOCOL_NUMBE_LENGTH:int=2;
		
		/**
		 * 包尾长度(校验码(4byte))
		 */
		public static const PACKET_END_LENGTH:int=4;
		
		public function SocketConfig()
		{
		}
	}
}